Moreover , on a multiprocessor system , disabling interrupts on the local cpu is not sufficient , and other synchronization techniques must be used 此外,在多處理器系統(tǒng)上,在當(dāng)前cpu上禁止中斷是不能正確完成同步功能的,必須同時使用附加的同步技術(shù)。
Function is one that cannot be shared by more than one task unless mutual exclusion to the function is ensured either by using a semaphore or by disabling interrupts during critical sections of code 函數(shù)不能由超過一個任務(wù)所共享,除非能確保函數(shù)的互斥(或者使用信號量,或者在代碼的關(guān)鍵部分禁用中斷) 。
Linux is originally designed as a time - sharing operating system . due to its non - preemptive kernel , coarse time granularity , frequent disabled interrupt , virtual memory and other buffer mechanism , linux is not so “ real - time ” as rtos Linux的調(diào)度機(jī)制決定了它是一個分時系統(tǒng),其不可搶占的內(nèi)核、粗糙的時鐘粒度、頻繁的關(guān)中斷、虛存和其它緩沖機(jī)構(gòu)的設(shè)置,使得linux的實(shí)時性不強(qiáng)。